-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add otelaws middleware to support trace propagation in the AWS SDK v2 module #2856
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a CHANGELOG entry and tests for the new functionality?
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/aws.go
Outdated
Show resolved
Hide resolved
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/aws.go
Outdated
Show resolved
Hide resolved
@Aneurysm9 I have added tests and made the propagator configurable. Please could you re-review, thanks. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2856 +/- ##
=====================================
Coverage 69.2% 69.3%
=====================================
Files 145 145
Lines 6712 6729 +17
=====================================
+ Hits 4651 4667 +16
- Misses 1947 1948 +1
Partials 114 114
|
@dmathieu I've rebased and fixed the linter complaints. Please could you re-trigger the workflow. Thanks. |
Awesome, looks like all checks are passing. Rather than keep rebasing, please let me know when this can be merged and I will rebase ASAP. Please let me know if anything else is needed. |
Currently the
otelaws
instrumentation module does not propagate tracing information as part of any AWS SDK v2 call. To support this, I've added a new finalizer middleware that uses the provided text map propagator (or global using the OTel API) and injects the trace information into the request headers.This functionality is really important for me as I am heavily dependent on the AWS SDK v2 Go module and, most importantly, tracing across AWS service calls.